import request from '@/utils/request'
import defaultSettings from '@/settings'

// 黑名单维护列表查询
export const blackListMaintainUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistMaintain/search`,
}

// 黑名单维护审核列表查询
export const blackListApproveUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistMaintainApprove/search`,
}

// 黑名单查询列表查询
export const blackListQueryUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistQuery/search`,
}

// 黑名单文件上传审核列表查询
export const fileUploadApproveUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistFileUploadApprove/search`,
}

// 黑名单文件上传记录查询
export const fileUploadRecordQueryUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistFileUploadRecordQuery/search`,
}

// 黑名单新增
export function blackListAdd(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistMaintain/save`,
    method: 'post',
    data,
  })
}

// 黑名单删除
export function blackListDelete(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistMaintain/delete`,
    method: 'post',
    data,
  })
}

// 黑名单修改详情
export function blackListDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistMaintain/modify`,
    method: 'get',
    params: data,
  })
}

// 黑名单修改提交
export function blackListUpdate(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistMaintain/modifySave`,
    method: 'post',
    data,
  })
}

// 黑名单审核明细
export function blackListApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistMaintainApprove/detail`,
    method: 'get',
    params: data,
  })
}


// 黑名单维护审核
export function blackListApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistMaintainApprove/approve`,
    method: 'post',
    data,
  })
}

// 黑名单维护审批拒绝
export function blackListReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistMaintainApprove/reject`,
    method: 'post',
    data,
  })
}

// 黑名单查询明细
export function blackListQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistQuery/detail`,
    method: 'get',
    params: data,
  })
}

// 黑名单文件上传审核明细
export function fileUploadApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistFileUploadApprove/detail`,
    method: 'get',
    params: data,
  })
}

// 黑名单文件上传审核通过
export function fileUploadApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistFileUploadApprove/approve`,
    method: 'post',
    data,
  })
}

// 黑名单文件上传审核拒绝
export function fileUploadReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistFileUploadApprove/reject`,
    method: 'post',
    data,
  })
}

// 黑名单文件上传查询明细
export function fileUploadRecordQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistFileUploadRecordQuery/detail`,
    method: 'get',
    params: data,
  })
}

 
// 黑名单文件上传提交
export function blackListFileUpload(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/blacklistControl/BlacklistFileUpload/save`,
    method: 'post',
    data,
  })
}

